Method and system for monitoring of library components

ABSTRACT

Embodiments of the present invention provide a method for monitoring components in a library by tracking the movement of library components. By tracking the movement of library components, the degradation of library components can be monitored and the reliability of library components determined, allowing unreliable components to be bypassed or replaced, enhancing the reliability of the library and preventing data loss.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of, and claims a benefit of priorityunder 35 U.S.C. 120 of the filing date of U.S. patent application Ser.No. 15/010,954 filed on Jan. 29, 2016, entitled “METHOD AND SYSTEM FORNON-INTRUSIVE MONITORING OF LIBRARY COMPONENTS”, which is a continuationof, and claims a benefit of priority under 35 U.S.C. 120 of the filingdate of U.S. patent application Ser. No. 14/574,077, filed on Dec. 17,2014, entitled “METHOD AND SYSTEM FOR NON-INTRUSIVE MONITORING OFLIBRARY COMPONENTS”, issued as U.S. Pat. No. 9,280,410, which is acontinuation of, and claims a benefit of priority under 35 U.S.C. 120 ofthe filing date of U.S. patent application Ser. No. 14/324,980, filed onJul. 7, 2014, entitled “METHOD AND SYSTEM FOR NON-INTRUSIVE MONITORINGOF LIBRARY COMPONENTS”, issued as U.S. Pat. No. 8,949,667, which is acontinuation of, and claims a benefit of priority under 35 U.S.C. 120 ofthe filing date of U.S. patent application Ser. No. 11/801,809, filed onMay 11, 2007, entitled “METHOD AND SYSTEM FOR NON-INTRUSIVE MONITORINGOF LIBRARY COMPONENTS”, issued as U.S. Pat. No. 8,832,495, the entirecontents of which are hereby expressly incorporated by reference for allpurposes.

TECHNICAL FIELD OF THE INVENTION

The present invention relates to methods and systems for monitoringcomponents of a library. More particularly, the present inventionrelates to methods and systems for monitoring library components bytracking library components in a non-intrusive manner using anout-of-band appliance.

BACKGROUND

Data represents a significant asset for many entities. Consequently,data loss, whether accidental or caused by malicious activity, can becostly in terms of wasted manpower, loss of goodwill from customers,loss of time and potential legal liability. To ensure proper protectionof data for business and legal purposes, many entities back up data to aphysical storage media such as magnetic tapes or optical disks.Traditionally, backup would occur at each machine controlled by anentity. As the sophistication of network technology increased, manyentities turned to enterprise level backup in which data from multiplemachines on a network is backed up to a remote library. Typically, alibrary includes a variety of components which include a plurality ofmedia for data storage, e.g. multiple magnetic tapes. Centralized databackup has the advantage of increased volume, efficiency and redundancy.

In many systems, the data to be backed up and backup commands are sentover a network from multiple machines on the network to a library. Inmany instances, the data to be backed up and the backup commands arerouted to the library through a switch.

One example of a library commonly used in enterprise backup systems is amagnetic tape library. A magnetic tape library can comprise componentssuch as tape cartridges (containing magnetic tape), robots, tape slotsand tape drives. A typical magnetic tape library contains multiplecartridge slots in which tape cartridges can be stored. Tape cartridges,commonly referred to as tapes, are physically moved between cartridgeslots and tape drives by a robot. The robot is controlled by commandsreceived from the host devices on the network. When specific data isrequired, a host device determines which cartridge slot contains thetape cartridge that holds the desired data. The host device thentransmits a move-element command to the robot and the robot moves thetape cartridge to a tape drive which reads the desired data from thetape cartridge.

In a SCSI tape library, devices that are part of the library aretypically addressed by target number. Thus, each drive and robot of atape library typically has a target number. Cartridge slots, on theother hand, are addressed by element numbers that are used by the robotto locate the slots. Because the robot also places tape cartridges inthe drives, each drive is also associated with an element number.

Components of a library are subject to wear and other forms ofdegradation which may degrade individual library component(s) to a pointwhere the degraded component(s) can no longer be reliably used.Degradation of library components may render a library unreliable andprone to data loss, diminishing the library's usefulness as a backupdevice. The failing of even one library component can cause the loss ofvaluable data. Furthermore, the process of determining which librarycomponent is failing and rendering the library unreliable can be timeconsuming, uncertain and expensive.

SUMMARY OF THE INVENTION

Embodiments of the present invention provide a method and system ofmonitoring library components that eliminates, or at least substantiallyreduces, the shortcomings of prior art library systems and methods. Moreparticularly, embodiments of the present invention comprise polling thestate of a library at intervals and monitoring library components basedon a set of returned library states from the polling of the library. Themethod can also comprise comparing returned library states to track themovement of one or more library component(s). The method can furthercomprise correlating errors with a particular library component based onthe movement of one or more library component(s). Thus tape movementscan be tracked and library components monitored.

Another embodiment of the present invention can include a set ofcomputer instructions executable by a computer processor to poll thestate of a library at intervals and monitor library components based ona set of returned library states from the polling of the library. Thecomputer instructions can also be executable to compare returned librarystates to track the movement of one or more library component(s). Thecomputer instructions can be further executable to correlate errors witha particular library component based on the movement of one or morelibrary component(s). In this manner, the computer instructions can beexecutable to track tape movements and monitor library components.

The present invention provides an advantage over prior art systems andmethods of monitoring libraries by providing a non-intrusive method ofmonitoring library components: the state of a library can be monitoredwithout having to intercept commands and data being sent to or from thelibrary. An additional advantage is that the monitoring appliance doesnot have to be in-band, but can be an out-of-band device. This allowsthe monitoring appliance to be a self-contained device which can becoupled to a switch or network, allowing for easy deployment. This canreduce the complexity and cost of monitoring library components.

BRIEF DESCRIPTION OF THE FIGURES

A more complete understanding of the present invention and theadvantages thereof may be acquired by referring to the followingdescription, taken in conjunction with the accompanying drawings inwhich like reference numbers indicate like features and wherein:

FIG. 1 is a diagrammatic representation of one embodiment of a library;

FIG. 2 is a diagrammatic representation of one embodiment of a backupsystem using a library and having a monitoring appliance;

FIG. 3 is a diagrammatic representation of one embodiment of acontroller which can be used in a monitoring appliance;

FIG. 4 is a flowchart illustrating a method for monitoring librarycomponents according to one embodiment of the present invention;

FIG. 5 is an example representation of a library state; and

FIG. 6 is an example comparison of representations of library statespolled at different times.

DETAILED DESCRIPTION

Preferred embodiments of the invention are illustrated in the FIGURES,like numerals being used to refer to like and corresponding parts of thevarious drawings.

Embodiments of the present invention provide a method and system formonitoring the components of a library. By monitoring librarycomponents, the degradation and reliability of library components can bemonitored, allowing unreliable or unacceptably degraded components to beidentified, thus allowing for the unreliable or degraded components tobe bypassed or replaced, enhancing the reliability of the library andproactively preventing data loss.

FIG. 1 is a diagrammatic representation of one embodiment of a tapelibrary, as would be understood by one of ordinary skill in the art.Library 100 can comprise drives 140 a-140 e, media changer 125 andassociated robot 130, import/export element(s) 145 and slots 135 a-135j. Drives 140 a-140 e can read/write data from/to magnetic tape(contained within cartridges), eject tape cartridges and perform otheroperations. Slots 135 a-135 j store the magnetic tape cartridges whenthey are not in a drive and robot 130 moves the magnetic tape cartridgesbetween drives 140 a-140 e and slots 135 a-135 j. For example, robot 130may move a tape cartridge stored at slot 135 a to drive 140 b so thatdata can be written to the tape cartridge. It should be noted that somelibraries may employ a single robot or multiple robots in an expandableor modular configuration.

A Read Element Status (RES) command is a command which is used to pollthe state of a library. That is, a RES command is sent to a library andin response, the library returns its current state, including thelocations of individual tape cartridges. Thus a RES command provides asnapshot of a library at any one time. Examples of a RES command can befound in section 6.5 of NCITS T10/999D Revision 10a Specification,section 6.10 of INCITS T10/1383D Revision 7 Specification and section6.10 of INCITS T10/1730-D Revision 5 Specification; all of theabove-mentioned Specifications are hereby incorporated by reference.

A drive inquiry is an inquiry command that is used to query the serialnumber of components of a library such as a tape drive or other drive ora media changer. Embodiments of drive inquiry commands query singlelibrary components. That is, an individual drive inquiry may regard onelibrary component.

Embodiments of the invention utilize a monitoring appliance which can bea Read Verify Appliance (RVA). The monitoring appliance polls the stateof a library over time by sending RES commands to the library atintervals. Returned library states are compared. Based on the comparisonbetween the returned library states, the movement of tape cartridgesover time can be tracked.

In further embodiments of the invention, a library state is representedas a XML representation of data returned in response to a RES command. AXML representation can be supplemented with data returned in response toone or more drive inquires. For example, a supplemented XMLrepresentation of a library state can include serial numbers of librarycomponents determined from drive inquiries issued to correspondinglibrary components. In other embodiments of the invention, a librarystate can be represented in a different format.

Tracking the movement of tape cartridges or other media allows sourcesof errors to be identified. For example, an individual tape cartridgemay suffer from an increasing number of data errors in any drive: thisimplies that the tape cartridge is degrading and may requirereplacement. In another example, a tape cartridge may encounter errorswhen used with a tape drive A but may encounter no errors when used withother tape drives. If other tape cartridges encounter errors when usedwith tape drive A, but encounter no errors when used with other tapedrives, this implies that tape drive A is unreliable. Accordingly, tapedrive A may be bypassed or replaced. By tracking the movement of one ormore tape cartridges, errors can be correlated to a particular tape ordrive.

It should be noted that the intervals between polling can be fixedperiods of time or of variable duration or a combination of the two. Inone embodiment, the monitoring appliance polls a library every 30seconds. In another embodiment, the time duration between polling isless than the backup time or the tape movement time. In embodiments ofthe invention, the intervals can be determined by computer algorithm oruser input.

FIG. 2 is a diagrammatic representation of a system 200 in which aplurality of hosts 202 a-202 d have access to library 100 over network205. Network 205 can comprise the Internet, a SAN, a LAN, a WAN, awireless network or any other communications network known in the art.Hosts 202 a-202 d are coupled to library 100 via network 205 and switch207. Similarly, library 100 can communicate with switch 207 over anysuitable communications link or network known in the art and can useadditional protocols such as iSCSI, TCP/IP, or other protocol known inthe art. Switch 207 is connected to monitoring appliance 220.

Switch 207 is connected to library 100. Thus switch 207 can forward REScommands from monitoring appliance 220 to library 100. Switch 207receives the library state generated in response to the RES command fromlibrary 100 and forwards the library state to monitoring appliance 220which stores the library state and/or compares it with one or moreprevious library states. Thus monitoring appliance 220 can continuallypoll the state of library 100, track tape movements and monitor thecomponents of library 100. Because monitoring appliance 220 tracks tapemovements using RES commands, monitoring appliance 220 does not need tointercept commands or responses from network 205 to track tapemovements. Thus, in one embodiment, monitoring appliance 220 can be anout-of-band appliance. This allows monitoring appliance 220 to be anon-intrusive device which does not monitor or interfere with commandsfrom and responses to hosts 202 a-202 d. Consequently, monitoringappliance 220 can be a compartmentalized device which can be coupled toa switch and which does not have to be integrated into network 205. Anadvantage of this out-of-band methodology is that a monitoring appliancecan be used to monitor library components without cumbersomeconfiguring.

While shown as a physical media library in FIG. 2, library 100 can be avirtual media library that is a virtual representation of one or morephysical media libraries as presented by switch 207, a librarycontroller or other component. Examples of library virtualization aredescribed in U.S. patent application Ser. No. 10/704,265, entitledSYSTEM AND METHOD FOR CONTROLLING ACCESS TO MULTIPLE PHYSICAL MEDIALIBRARIES, and U.S. patent application Ser. No. 10/703,965, entitledSYSTEM AND METHOD FOR CONTROLLING ACCESS TO MEDIA LIBRARIES, both ofwhich are hereby incorporated by reference herein.

FIG. 3 is a diagrammatic representation of a monitoring appliancecontroller 300 (“controller 300”). Controller can include a processor302, such as an Intel Pentium 4 based processor (Intel and Pentium aretrademarks of Intel Corporation of Santa Clara, Calif.), a primarymemory 303 (e.g., RAM, ROM, Flash Memory, EEPROM or other computerreadable medium known in the art) and a secondary memory 304 (e.g., ahard drive, disk drive, optical drive or other computer readable mediumknown in the art). A memory controller 307 can control access tosecondary memory 304. Controller 300 can comprise a communicationsinterface 306 (e.g., fibre channel interface, Ethernet port or othercommunications interface known in the art) to connect controller 300 toswitch 207. An I/O controller 312 can control interactions with switch207. Similarly, an I/O controller 314 can control interactions over I/Ointerfaces 308 and 310. Controller 300 can include a variety of inputdevices. Various components of controller 300 can be connected by a bus326.

Secondary memory 304 can store a variety of computer instructions thatinclude, for example, an operating system such as a Windows operatingsystem (Windows is a trademark of Redmond, Wash. based MicrosoftCorporation) and applications that run on the operating system, alongwith a variety of data. More particularly, secondary memory 304 canstore a software program 330 that monitors library components. Duringexecution by processor 302, portions of program 330 can be stored insecondary memory 304 and/or primary memory 303.

FIG. 4 is a flow chart illustrating one embodiment of a method formonitoring library components. According to one embodiment, the methodof FIG. 4 can be implemented as a set of computer executableinstructions stored on a computer readable medium at, for example,monitoring appliance 220. The set of computer executable instructionscan, when executed, monitor library components in a non-intrusivemanner. At step 455, the state of the library is polled by sending a REScommand directly or indirectly to the library. The library returns itspresent state, including the locations of tapes in the library. Thereturned library state is received by the monitoring appliance. At step460, the returned library state is compared to a previous library state.Based on the comparison between the returned library state and theprevious library state, tape movements within the library can be tracked(step 465). For example, if in the previous library state, a tape was ata specified drive in the library and in the returned state of thelibrary, the same tape is in a slot, it can be determined that the tapehas been moved from the drive to the slot. Based on such comparisonsbetween library states, the movement of tapes within a library can betracked over time. At step 470, errors are correlated with librarycomponents based on tape movements. This allows the monitoring applianceto monitor the degeneration of library components. For example, if adrive registers an increasing number of errors, regardless of the robotor tape used with the drive, then the drive is likely degenerating andbecoming increasingly unreliable. Accordingly, this allows the failingdrive to be identified and bypassed or replaced before it causes dataloss or library failure.

In embodiments of the invention, library states are supplemented withadditional data. Such data can be obtained from, for example, one ormore drive inquires and can include the serial number of one or morecomponents.

Either tape movements can be stored and used to monitor librarycomponents or the actual library states can be stored and used to tracktape movements. It is possible to store both tape movements or librarystates or any combination of the two. Tape movements or library statescan be stored in memory, in a database or according to other datastorage schemes to allow for easy access.

FIG. 5 is an example representation of a library state returned inresponse to a RES command. This representation is for a library with tenslots, one import/export element, two drives and two tapes.

FIG. 6 is an example comparison of representations of library statesreturned in response to RES commands issued at different times. State610 is returned at a time. State 620 is returned at a subsequent time.By comparing the differences between the two states, it is possible todetermine that the tape with volume identity 000105 has moved from theslot at element identity 0×1007 to the drive at element identity 0×101.This movement is shown by directional arrow 630.

Embodiments of the present invention can also be implemented withrespect to libraries of media other than magnetic tapes. For example,the library can comprise a plurality of optical disks (i.e., an opticaljukebox) or removable hard drives. Other libraries can utilize acombination of different storage media such as hard drives, magneticmedia or optical media.

While the present invention has been described with reference toparticular embodiments, it should be understood that the embodiments areillustrative and that the scope of the invention is not limited to theseembodiments. Many variations, modifications, additions and improvementsto the embodiments described above are possible. It is contemplated thatthese variations, modifications, additions and improvements fall withinthe scope of the invention as detailed in the following claims.

What is claimed is:
 1. A monitoring device, comprising, An interface,wherein the monitoring device is communicatively coupled to a medialibrary through the interface, the media library comprising a pluralityof library components including a plurality of media; a controller,including a processor, for monitoring library components of the medialibrary by: sending a plurality of commands to the media library over aperiod of time; monitoring media in the media library based on thestates returned in response to the commands, wherein a returned statecomprises a location of media in the media library; correlating errorsof library components with the media based on the monitoring of themedia; and identifying a library component of the media library as anerror source based on the correlation.
 2. The monitoring device of claim1, wherein the media are set of tapes and the library components furthercomprise a robot, a slot or a drive.
 3. The monitoring device of claim1, wherein the media library is a virtual media library.
 4. Themonitoring device of claim 1, wherein monitoring media comprisestracking a movement of media by comparing a first library state returnedin response to a first command to a second library state returned inresponse to a second command.
 5. The monitoring device of claim 1,wherein the commands include one or more Read Element Status Commands orone or more inquiry commands.
 6. The monitoring device of claim 1,wherein each of the plurality of commands is sent at a time interval,wherein the time interval is less than a backup time or a tape movementtime for the media library.
 7. The monitoring appliance of claim 1,wherein the monitoring device is an out-of-band monitoring appliance. 8.A method of monitoring library components, comprising, sending aplurality of commands to a media library over a period of time, themedia library comprising a plurality of library components including aplurality of media; monitoring media in the media library based on thestates returned in response to the commands, wherein a returned statecomprises a location of media in the media library; correlating errorsof library components with the media based on the monitoring of themedia; and identifying a library component of the media library as anerror source based on the correlation.
 9. The method of claim 8, whereinthe media are set of tapes and the library components further comprise arobot, a slot or a drive.
 10. The method of claim 8, wherein the medialibrary is a virtual media library.
 11. The method of claim 8, whereinmonitoring media comprises tracking a movement of media by comparing afirst library state returned in response to a first command to a secondlibrary state returned in response to a second command.
 12. The methodof claim 8, wherein the commands include one or more Read Element StatusCommands or one or more inquiry commands.
 13. The method of claim 8,wherein each of the plurality of commands is sent at a time interval,wherein the time interval is less than a backup time or a tape movementtime for the media library.
 14. The method of claim 8, wherein themonitoring device is an out-of-band monitoring appliance.
 15. Anon-transitory computer readable medium, comprising instructions for:sending a plurality of commands to a media library over a period oftime, the media library comprising a plurality of library componentsincluding a plurality of media; monitoring media in the media librarybased on the states returned in response to the commands, wherein areturned state comprises a location of media in the media library;correlating errors of library components with the media based on themonitoring of the media; and identifying a library component of themedia library as an error source based on the correlation.
 16. Thecomputer readable medium of claim 15, wherein the media are set of tapesand the library components further comprise a robot, a slot or a drive.17. The computer readable medium of claim 15, wherein the media libraryis a virtual media library.
 18. The computer readable medium of claim15, wherein monitoring media comprises tracking a movement of media bycomparing a first library state returned in response to a first commandto a second library state returned in response to a second command. 19.The computer readable medium of claim 15, wherein the commands includeone or more Read Element Status Commands or one or more inquirycommands.
 20. The computer readable medium of claim 15, wherein each ofthe plurality of commands is sent at a time interval, wherein the timeinterval is less than a backup time or a tape movement time for themedia library.
 21. The computer readable medium of claim 15, wherein themonitoring device is an out-of-band monitoring appliance.